import { ReplaySubject } from 'rxjs'
const rSubject = new ReplaySubject()
rSubject.subscribe(value => console.log(value))

rSubject.next("1")
rSubject.next("2")
setTimeout(() => {
  rSubject.subscribe(value => console.log(value))
}, 2000)
